/*
 * ObjectGroup.h
 *
 *  Created on: Aug 25, 2011
 *      Author: mengwei.chua
 */

#ifndef OBJECTGROUP_H_
#define OBJECTGROUP_H_

#include <deque>
#include "util/IXmlParsable.h"

#include "Object.h"

namespace projectcos
{
namespace tile
{
namespace parser
{

class ObjectGroup : public projectcos::util::IXmlParsable
{
public:
	ObjectGroup();
	virtual ~ObjectGroup();

	virtual bool Parse(const TiXmlElement* element);

	std::string GetName() const;
	void GetObjects(std::deque<Object>& objects) const;

protected:
private:
	std::string m_Name;

	std::deque<Object> m_ObjectList;
};

} // parser
} // tile
} // projectcos

#endif /* OBJECTGROUP_H_ */
